@import url(https://fonts.googleapis.com/css?family=Lato);
html,body{
	height: 100%;
	position: relative;
	overflow: hidden;
}
h1{
	position: absolute;
	top: 50%;
	left:50%;
	-webkit-transform: translate(-50%,-50%);
	transform: translate(-50%,-50%);
	font-size: 1.7rem;
	font-family: "Lato";
	text-shadow: 0 1px 1px rgba(0,0,0,0.1);
	line-height: 1.2;
	color: #FFFFFF;
	z-index: 2;
}
div{
	background-color: black;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	-webkit-transition: -webkit-transform 0.4s ease;
	transition: -webkit-transform 0.4s ease;
	transition: transform 0.4s ease;
	transition: transform 0.4s ease, -webkit-transform 0.4s ease;
	-webkit-transform: translateX(-100%);
	transform: translateX(-100%);
}
div:nth-of-type(1){
	background-color: gold;
}
div:nth-of-type(2){
	background-color: palevioletred;
}
div:nth-of-type(3){
	background-color: skyblue;
}
div:nth-of-type(4){
	background-color: limegreen;
}
input[type="radio"]{
	position: absolute;
	left: 0;
	width: 10px;
	height: 25%;
	outline: 10px solid;
	outline-offset: -10px;
	margin: 0;
	z-index: 1;
	cursor: pointer;
}
input[type="radio"]:nth-of-type(1){
	outline-color: gold;
	top: 0%;
}
input[type="radio"]:nth-of-type(2){
	outline-color: palevioletred;
	top: 25%;
}
input[type="radio"]:nth-of-type(3){
	outline-color: skyblue;
	top: 50%;
}
input[type="radio"]:nth-of-type(4){
	outline-color: limegreen;
	top: 75%;
}
input[type="radio"]:checked + div{
	-webkit-transform: translateX(0%);
	transform: translateX(0%);
	-webkit-transition: -webkit-transform 0.4s ease 0.4s;
	transition: -webkit-transform 0.4s ease 0.4s;
	transition: transform 0.4s ease 0.4s;
	transition: transform 0.4s ease 0.4s, -webkit-transform 0.4s ease 0.4s;
}